﻿@model IEnumerable<MvcHeatloss.Models.Radiator>

@{
    ViewBag.Title = "Radiator";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<section class="group5">
   <h3>Radiator Categories</h3>
   <ul>
    <li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Vertical Radiators</a></li>
	<li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Horizontal Radiators</a></li>
    <li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Column Radiators</a></li>
    <li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Heated Towel Rails</a></li>
	<li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Stainless steel Radiators</a></li>
	<li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Panel Radiators</a></li>
	<li><a href="#"><img src="~/Content/themes/base/images/ShoppingCart.png" width="30" height="25">Radiator Valves</a></li>
    </ul>
	</section>



<Legend>
<h2>The Output required to heat your room is @ViewBag.RequiredBTU BTU</h2>
@foreach (var item in Model) {
   
    <h2>@Html.DisplayFor(modelItem => item.Title)</h2>
    <img alt="Product Image" src="~/Content/themes/base/images/Product1.jpg" width="50" height="50"/>
    <p>Price: €@Html.DisplayFor(modelItem => item.Price)</p>        
    <p>Height: @Html.DisplayFor(modelItem => item.Height)</p>
    <p>Width: @Html.DisplayFor(modelItem => item.Length)</p>
    <p>BTU Output: @Html.DisplayFor(modelItem => item.BTU)</p>
    <p>Colour: @Html.DisplayFor(modelItem => item.Colour)</p>
    <p>Guarantee: @Html.DisplayFor(modelItem => item.Guarantee)</p>
    <p>Brand: @Html.DisplayFor(modelItem => item.Brand)</p>
    <p>Delivery: @Html.DisplayFor(modelItem => item.Delivery)</p>
    <button>@Html.ActionLink("Add to Cart", "AddToCart", new { id = item.RadiatorID })</button>
    <button>@Html.ActionLink("Buy Now", "BuyNow", new { id = item.RadiatorID })</button>


}
</Legend>